<?php
class PlaceType{

	protected $code;
	protected $name;
	
	public function __construct($twitObj){
		$this->code = $twitObj['code'];
		$this->name = $twitObj['name'];
	}

	public function __get($key) {
		return $this->$key;
	}
	public function __set($key, $value) {
		$this->$key = $value;
	}

}